import request from "../utils/request.js";

// 个人端服务详情
export function findServePersonalDetailApp(id) {
  return request({
    url: `/serve_personal/findServePersonalDetailApp/${id}`,
    method: "get",
  });
}

// 企业端服务详情
export function findServeDetailApp(id) {
  return request({
    url: `/serve/findServeDetailApp/${id}`,
    method: "get",
  });
}
// 导师列表
export function tutorList(data = {}) {
  return request({
    url: `/tutor/findTutorsByNameAndServeIdApp`,
    method: "post",
    data,
  });
}
// 导师详情
export function tutorDetailApi(tutorId, serveId) {
  return request({
    url: `/tutor/findTutorDetailApp/${tutorId}/${serveId}`,
    method: "get",
  });
}
//收藏的服务列表——个人

export function personalServeActionList(params) {
  return request({
    url: `/serveAction/personalServeActionList`,
    method: "get",
    params,
  });
}
//收藏的服务列表——企业
export function companyServeActionList(params) {
  return request({
    url: `/serveAction/companyServeActionList`,
    method: "get",
    params,
  });
}
// 服务行为
export function serveAction(data) {
  return request({
    url: `/serveAction`,
    method: "post",
    data,
  });
}
// 获取所有服务目录
export function findServeTypeByName(params) {
  return request({
    url: `/serve_personal/findServeTypeByName`,
    method: "get",
    params,
  });
}
// 根据目录id获取下级服务目录
export function findServfindServeTypeByTypeIdeTypeByName(params) {
  return request({
    url: `/serve_personal/findServeTypeByTypeId`,
    method: "get",
    params,
  });
}
// 服务目录树形图——个人端
export function findServeTreePersonal(data) {
  return request({
    url: `/serve_personal/findServeTree`,
    method: "post",
    data,
  });
}
//服务目录树形图——企业端
export function findServeTree(data) {
  return request({
    url: `/serve/findServeTree`,
    method: "post",
    data,
  });
}
